home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir26 / epi601_2.zip / FILES07.EXE / TUTOR1.PGM < prev    next >
Text File  |  1994-08-22  |  12KB  |  418 lines

  1. ********************************************************
  2. *                                                      *
  3. *                  TUTOR1.PGM                          *
  4. *                                                      *
  5. ********************************************************
  6. Set pause = off
  7. cls
  8. echo
  9. echo
  10. echo      This program demonstrates the features of ANALYSIS in Version 6
  11. echo                              of Epi Info.
  12. echo
  13. echo     The upper portion of the screen shows results and the lower window
  14. echo                        is for entering commands.
  15. echo
  16. echo       The STATUS line at the top of the screen gives the name of the
  17. echo             active data set and the amount of memory available.
  18. echo
  19. echo           The PROMPT line at the bottom describes commonly used
  20. echo                  commands accessible through function keys.
  21. echo
  22. ?Press <Enter> to continue (<F10> to QUIT): ?
  23. cls
  24. echo
  25. echo
  26. echo        The ANALYSIS program is command driven, that is, it requires
  27. echo         commands for its operation. The commands may be given from
  28. echo         the keyboard or placed in a PROGRAM FILE that is then RUN
  29. echo         in ANALYSIS.  Program files may be created in EPED merely
  30. echo          by putting the commands in a text file, with one command
  31. echo                                  on each line.
  32. echo
  33. echo            This tutorial will help you to become acquainted with
  34. echo                       several frequently used commands.
  35. ?Press <Enter> to continue (<F10> to QUIT): ?
  36. cls
  37. echo
  38. echo
  39. echo
  40. echo            The commands included in the tutorial are:
  41. echo
  42. echo   READ       Specifies the data set to be analyzed.
  43. echo              This command must precede all commands that use data files.
  44. echo
  45. echo   LIST       Produces a line list.
  46. echo
  47. echo   FREQ       Produces frequency distributions.
  48. echo
  49. echo   TABLES     Does cross tabulations.
  50. echo
  51. echo   MEANS      Does means, ANOVA, Kruskal-Wallis.
  52. echo
  53. echo   SELECT     Selects a subset of the data file.
  54. echo
  55. echo   SORT       Sorts the data for a line list.
  56. echo
  57. echo   ROUTE      Sends output to the printer, the screen, or a file.
  58. echo
  59. echo   BAR        Makes a bar graph
  60. echo
  61. echo   TITLE      Adds a title to a graph or table
  62. echo
  63. echo   PIE        Makes a pie graph
  64. echo
  65. echo   HISTOGRAM  Makes a histogram
  66. echo
  67. echo   LINE       Makes a line graph
  68. echo
  69. echo   <F10>      Leaves the ANALYSIS system and returns to DOS.
  70. echo    QUIT
  71. echo
  72. echo
  73. echo
  74. echo
  75. echo                                 OOPS!!!
  76. echo               Some of the material scrolled off the screen.
  77. echo          You probably want to go back and read it more carefully.
  78. echo        To see previous results, press the <PgUp> key.  If you hold
  79. echo       down the control key while pressing <PgUp>, you can scroll a
  80. echo       line at a time rather than a whole page.  Try <Ctrl-PgDn> and
  81. echo                 <PgDn> to return to the bottom of the text.
  82. echo
  83. echo
  84. echo
  85. echo
  86. echo
  87. echo
  88. echo Press <Enter> to continue...
  89. ?EPI> ?
  90. Cls
  91. echo
  92. echo
  93. echo
  94. echo
  95. echo          ANALYSIS can also be told to pause automatically after
  96. echo               each screen.  It prompts with the word <more>
  97. echo                and then continues when you press <Enter>.
  98. echo
  99. echo                        Type:      SET PAUSE = ON
  100. echo
  101. echo
  102. echo      By the way, commands can be in upper or lower case or a mixture,
  103. echo          except for items in quotation marks, where case is taken
  104. echo                               seriously.
  105. ?EPI> ?
  106. CLS
  107. echo
  108. echo
  109. echo
  110. echo
  111. echo
  112. echo             To see all the ANALYSIS commands, press the <F2> key.
  113. echo
  114. echo
  115. echo
  116. echo
  117. echo
  118. echo                     To remove the window from the screen,
  119. echo                          press <Esc>, the Escape key.
  120. echo
  121. echo
  122. echo
  123. echo
  124. echo Press <Enter> to continue...
  125. ?EPI> ?
  126. echo
  127. CLS
  128. echo
  129. echo
  130. echo                    An extensive HELP file is available.
  131. echo                We will display the information on the READ
  132. echo             command, since that is the first one we will use.
  133. echo
  134. echo               Press the <F1> key to bring up the catalog of
  135. echo                 help topics and then move the cursor bar
  136. echo                    to the READ topic and press <Enter>.
  137. echo
  138. echo            As with other windows, <Esc> will remove the window.
  139. echo
  140. echo
  141. echo
  142. echo
  143. echo Press <Enter> to continue...
  144. ?EPI> ?
  145. echo
  146. CLS
  147. echo
  148. echo
  149. echo
  150. echo
  151. echo               The item after READ is the name of the file that
  152. echo                is to become the active dataset.  You can type
  153. echo                 this directly if you know the name.
  154. echo
  155. echo                          Type:      READ <Enter>
  156. echo
  157. echo                Choose OSWEGO from the file window by moving the
  158. echo                  cursor bar to OSWEGO.REC with the arrow keys
  159. echo                             and pressing <Enter>.
  160. echo
  161. ?EPI> ?
  162. echo
  163. cls
  164. echo
  165. echo
  166. echo     Note that OSWEGO.REC is shown as the active dataset at the top of the
  167. echo         screen.  All subsequent operations will be done on this file.
  168. echo
  169. echo
  170. echo       The first step in analyzing many datasets is to do a line listing.
  171. echo
  172. echo         Enter the command LIST, and then press <Enter>.  (From now on,
  173. echo          we won't bother to say "and then press <Enter>," as this is
  174. echo             done after every command.)
  175. echo
  176. echo                              Type:       LIST
  177. echo
  178. ?EPI> ?
  179. echo
  180. ?Press <Enter> to continue (<F10> to QUIT): ?
  181. cls
  182. echo
  183. echo
  184. echo      To show the frequency of each value for a given variable, use the
  185. echo                                FREQ command.
  186. echo
  187. echo      The command FREQ * will produce frequencies for every variable in
  188. echo      the dataset.  FREQ followed by one or more variable names will do
  189. echo                       frequencies for these variables.
  190. echo
  191. echo             The variable names are available by pressing <F3>.
  192. echo
  193. echo       Type:      FREQ          and then press <F3>,
  194. echo                                choosing AGE with the arrow
  195. echo                                and <Enter> keys.
  196. echo
  197. echo        If you wish, choose more than one variable by pressing <F3>
  198. echo                again.  Then press <Enter> to do the FREQ.
  199. echo
  200. ?EPI> ?
  201. echo
  202. ?Press <PgUp> to review results; <Enter> to continue... ?
  203. cls
  204. echo
  205. echo
  206. echo
  207. echo
  208. echo
  209. echo         The TABLES command produces cross tabulations with statistics
  210. echo                            to test for associations.
  211. echo
  212. echo
  213. echo                Type:       TABLES VANILLA ILL <Enter>
  214. echo
  215. ?EPI> ?
  216. echo
  217. ?Press <Enter> to continue (<F10> to QUIT): ?
  218. cls
  219. echo
  220. echo
  221. echo
  222. echo
  223. echo
  224. echo       Note that both the odds ratio and the risk ratio are much greater
  225. echo        than one, and that their confidence intervals do not include 1.
  226. echo      The confidence intervals to not include 1.0, the expected value if
  227. echo        there is no association, and the associated p value is much less
  228. echo        than 0.05.  These are all indications of an association between
  229. echo          VANILLA ice cream consumption and being ILL in this outbreak.
  230. echo
  231. echo
  232. echo
  233. echo
  234. echo
  235. ?Press <PgUp> to review the results; <Enter> to continue... ?
  236. cls
  237. echo
  238. echo
  239. echo
  240. echo                             Stratified Data Analysis
  241. echo
  242. echo      If more than two variables are given for the TABLES command, all
  243. echo       those variables after the second variable listed cause separate
  244. echo     tables to be made for each possible combination of these variables.
  245. echo   TABLES VANILLA ILL SEX produces separate tables for males and females.
  246. echo      The Mantel-Haenszel weighted odds ratio and summary chi square
  247. echo         at the end of the tables summarize the stratified analysis.
  248. echo
  249. echo         Type:          TABLES VANILLA ILL SEX        and watch the fun.
  250. echo
  251. ?EPI> ?
  252. echo
  253. ?Press <PgUp> to review the results; <Enter> to continue... ?
  254. cls
  255. echo
  256. echo
  257. echo
  258. echo        So far, we have analyzed DISCONTINUOUS data, having values of
  259. echo     YES and NO or Male and Female, and the results have been expressed
  260. echo          in 2-by-2 tables or at least in tables of small dimensions.
  261. echo
  262. echo     CONTINUOUS data, such as AGE or BLOOD PRESSURE requires a different
  263. echo     type of analysis.  To compare means for two or more groups, use the
  264. echo                                MEANS command.
  265. echo
  266. echo                 Type:          MEANS AGE ILL
  267. echo
  268. ?EPI> ?
  269. echo
  270. ?<PgUp> to review the work; <Enter> to continue... ?
  271. cls
  272. echo
  273. echo
  274. echo
  275. echo
  276. echo
  277. echo       Note that the p value is greater than 0.05. The probablility of a
  278. echo      true difference between the ages of the ILL and NOT ILL persons is
  279. echo                                     not high.
  280. echo
  281. ?<PgUp> to review the work; <Enter> to continue... ?
  282. cls
  283. echo
  284. echo
  285. echo
  286. echo
  287. echo
  288. echo     Suppose that we want to SELECT only ill persons less than 12 years of
  289. echo                                 age for analysis.
  290. echo
  291. echo
  292. echo              Type:      SELECT (ILL = "Y") and (AGE < 12)
  293. echo
  294. ?EPI> ?
  295. cls
  296. echo
  297. echo
  298. echo
  299. echo
  300. echo
  301. echo
  302. echo       Now we will sort the ill cases < 12 by sex and within sex by age.
  303. echo
  304. echo                 Type:          SORT SEX AGE
  305. echo
  306. ?EPI> ?
  307. echo
  308. cls
  309. echo
  310. echo
  311. echo
  312. echo
  313. echo       The ill cases < 12 have now been sorted by sex and age.  To get
  314. echo      a line listing of the variables AGE, SEX, ILL, VANILLA, and MILK
  315. echo
  316. echo
  317. echo            Type:          LIST AGE SEX ILL VANILLA MILK
  318. echo
  319. ?EPI> ?
  320. echo
  321. ?<PgUp> to review the work; <Enter> to continue... ?
  322. cls
  323. echo
  324. echo
  325. echo
  326. echo
  327. echo
  328. echo             To remove (cancel) the SELECT, type SELECT by itself
  329. echo                               and press <Enter>
  330. echo
  331. echo
  332. echo             Type:                   SELECT
  333. ?EPI> ?
  334. cls
  335. echo
  336. echo
  337. echo
  338. echo
  339. echo
  340. echo                              Now for some graphics.
  341. echo
  342. echo
  343. echo                           Type:                BAR AGE
  344. echo
  345. echo
  346. echo                When you are through viewing the graph, press <Enter>.
  347. ?EPI> ?
  348. cls
  349. echo
  350. echo
  351. echo
  352. echo
  353. echo            The graph needs a title.  You can have up to five titles.
  354. echo
  355. echo                   Type:  TITLE 1 Sex of Those Attending A Church Supper
  356. echo Press <Enter> and Type:  TITLE 2 Oswego, N.Y.
  357. echo
  358. ?EPI> ?
  359. ?EPI> ?
  360. echo
  361. ?Press <Enter> to continue (<F10> to QUIT): ?
  362. echo
  363. cls
  364. echo
  365. echo
  366. echo
  367. echo
  368. echo
  369. echo                   Type:         PIE SEX
  370. ?EPI> ?
  371. Title 1 ""
  372. Title 2 ""
  373. cls
  374. echo
  375. echo
  376. echo
  377. echo                               Try HISTOGRAM AGE
  378. echo
  379. echo           (We had the program remove the titles by typing TITLE 1 ""
  380. echo                                  and TITLE 2 "".)
  381. echo
  382. echo
  383. echo        Note that the bars are contiguous rather than separated, and that
  384. echo         missing values of age are indicated, even though no records had
  385. echo                 these ages.  The BAR command leaves these out.
  386. echo
  387. ?Press <Enter> to continue (<F10> to QUIT): ?
  388. cls
  389. echo
  390. echo
  391. echo
  392. echo
  393. echo
  394. echo
  395. echo                           Type:        LINE AGE
  396. ?EPI> ?
  397. echo
  398. ?Press <Enter> to continue (<F10> to QUIT): ?
  399. cls
  400. echo
  401. echo          This brief tutorial is complete.  Here is what you have learned:
  402. echo                       The components of the ANALYSIS screen
  403. echo                           How to get help from ANALYSIS
  404. echo                              How to READ a data file
  405. echo                     How to do FREQuencies, TABLES, and MEANS
  406. echo                 How to SELECT (or exclude) records from analysis
  407. echo                 How to make PIE, BAR, HISTOGRAM, and LINE graphs
  408. echo
  409. echo              There is much more to learn.  When you have practiced
  410. echo                 these commands there is another tutorial called
  411. echo               TUTOR2.PGM that introduces the concept of preserving
  412. echo              commands as program files and presents techniques for
  413. echo               "cleaning" data prior to analysis.  Meanwhile, you
  414. echo               have already learned enough to do a lot of analysis.
  415. echo              Try to put these commands to work on your next project.
  416. echo                   So long for now and thanks for your attention.
  417. ?Press <Enter> to leave the tutorial or <F10> to leave ANALYSIS...  ?
  418.